import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

//林木森5月18日修改

const store = new Vuex.Store({
    state: {
        singer: {}
    },
    mutations: {
        setSinger(state, singer) {
            state.singer = singer
            sessionStorage.setItem("singer", JSON.stringify(singer))
        }
    },
    getters: {
        singer: state => {
            return state.singer
        }
    },
    actions: {},
    modules: {},
})

export default store;